If - Else
If conditions are used to make decisions of which next flows to run.
When the condition inside if is true, the flows connected on if node
's if bubble
(1st bubble) runs and when false, the flows connected on else bubble
(2nd bubble) run.
If & Else
To use an if condition in your flow:
- Pick and drop an
if node
. - Open its properties.
- Write the condition eg.
a == 5
. Refer Expressions to learn more about conditions. - Connect the flow you want to run on condition = true to the 1st bubble i.e.
if bubble
of theif node
. - Similarly connect the flor you want to run on condition = false to the 2nd bubble i.e.
else bubble
.
Else If
You can perform more conditional checks around the same if node
by creating a nested if or an else if.
"If Node" Inside a Loop
When inside a loop, the if node
's all output flows, from each branch, should be sequentialised by ending the flows at 1 single point within the loop as mentioned in Loops.